import axios from 'axios'
import { IOT_API_BASE_URL } from '@/api/config.js'

const iotRequest = axios.create({
  baseURL:
    process.env.NODE_ENV === 'production'
      ? IOT_API_BASE_URL
      : '/iot',
  timeout: 120000
})

export default iotRequest
